Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 16 Dec 2018 17:25:59 +0000 (17:25 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 16 Dec 2018 17:25:59 +0000 (17:25 +0000)
commitd8c042c066fad528b9f542a4520228a52e3ff1e1
treeb41a78250c4fdc4f8175884eef9cf41e7c4482d0
parentd9c2849a4d6e578c71303bad0728afc9393ec372
Fix sbrk in PIE binaries

In PIE mode, the program gets loaded at very low address, and thus _end is very
low, just before libraries, and thus initializing the brk to it does not make
sense, since there is no room left there. Hardcode the brk to 0x8000000 for now
as a workaround.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-pie-sbrk.diff
sysdeps/mach/hurd/brk.c